const db = require('../../utils/db.js')


exports.getHomeCode = async function() {
    let sql = 'select * from t_article'
    db.query(sql, (err, data) => {
        if (err) {
            throw err
        } else {
            return data
        }
    })
}


